<div style="float:right;height:30px;">

</div>
<!-----------------filter form ----------------------------------->
<form action="<?= $base_url; ?>/cart/add/" method="post">

    
 <h1>    My Favorites </h1>

<table class="ftable" style="font-size:17px;" cellpadding="0" cellspacing="0">
<tbody>
<tr class="cartHead">

</tr>
<?php 
if(!empty($favorite)) 
{
	foreach($favorite as $key => $record) 
	{
		$product         		      = $this->product_model->getProducts($page,'', $like,array('id'=>$record['product_id']),'');
		$product            		  = $product->records[0];
		$style = (++$key%2) ? '' : 'alt'; 
?>	
	<tr class="fav">
	
        <td><?php $img = $product['id'].".".$product['image'];?>
         <img src="<?= $image_path; ?>products/<?=$img; ?>" height="100" width="150" class="thumb" align="left"/></td>
         <td>
         <br/><a href="<?=$base_url;?>cart/remove_item/<?=$product['id'] ?>"  class="r_items"> <span> </span></a>
         <br/><b><?php echo "Name: ".$product['name']?></b>
         <br/><?php echo "Description: ".$product['description']?>
         <br/>
         <?php echo "Size: ".$product['size']?>
		 <?php
		 /* if($record['special_cost'] >0)
		  {
		  echo $record['special_cost'];
		  $price  = $record['special_cost'];
		  }
		  else
		  {
		  echo $record['cost'];
		  $price  = $record['cost'];
		  } */ 
		  ?><br/>   <?php echo "Cost: ".$product['cost']?> 
          
          
          
          <br/>   <?php echo "Special Cost: ".$product['special_cost']?> 
          <br/>
                <?php
				
		
		/*  if($record['special_cost'] >0)
		  echo $record['special_cost'];
		  else
		  echo $record['cost']?> */
		 
		  //number_format($info['cost'],2,'.',''
		  ?>

	
		</td>
        <td><a style="margin-left:70px;" href="<?=$base_url ?>cart/add/<?=$product['id'] ?>"><img src="<?=$image_path ?>addtocart.png" alt="Add to cart"/>  </a> </td>
	</tr>
    
<?php 
	}
	?>
	
  
   
    <?php
} else {
?>
<tr><td>&nbsp;  </td><td colspan="6">No items in cart</td></tr>
<?php }?>
</tbody>
</table>
<div class="spacer10 rightText">
<?php 	echo $this->pagination->create_links();?>
</div>
         
          

</form>